/**
 * 
 */
package hichecker.university.jaxb;

import java.util.UUID;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlTransient;

/**
 * Class for the CompactHash
 */
public class StudentElement {

	private @XmlAttribute UUID key;
	private @XmlAttribute Float value;

	/**
	 * Creates the element
	 */
	public StudentElement() {
	}
	
	/**
	 * Creates the element with a key and a value
	 * @param key
	 * @param value
	 */
	public StudentElement(UUID key, Float value) {
		this.key = key;
		this.value = value;
	}
	
	/**
	 * @return the unique id
	 */
	@XmlTransient
	public UUID getKey() {
		return key;
	}

	/**
	 * @return the value as found in the original HashMap
	 */
	@XmlTransient
	public Float getValue() {
		return value;
	}
		
}
